#include<stdio.h>
#include<errno.h>
#include<stdlib.h>
#include<string.h>

int main(){
    FILE *f;
    f = fopen("tmp","r");
    if (f == NULL)
    {
        perror("fopen()");
        fprintf(stderr,"fopen():%d\n",errno);
        printf("fopen():%s\n",strerror(errno));
        exit(1);
    }
    fclose(f);
    exit(0);
}